﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BestLifePOS_Core.DomainObjects;

namespace BestLifePOS_PresentationLayer
{
    public partial class frm_Login : Form
    {
        public frm_Login()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            User user = CollectUserFigures();

            frm_Best_Life frmbl = new frm_Best_Life(user);
            frmbl.Show();
            this.Hide();
            
        }
        private User CollectUserFigures()
        {
            User user = new User();            
            user.Pas_Word = txtPassword.Text;
            user.Use_Name = txtUsername.Text;
            return user;

        }


    }
}
